<?php


header('Content-type:text/html; charset=utf-8');
// 注销后的操作
session_start();
// 清除Session
$username = $_SESSION['usrname'];  //用于后面的提示信息
$_SESSION = array();
session_destroy();

// 清除Cookie
setcookie('usrname', '', time()-999);
setcookie('code', '', time()-999);


header("location:index.php");


?>